const YAML = require("yamljs");
// const envPath = "../../env.yaml"

function main(envPath) {
    let env = YAML.load(envPath);
    //取出配置文件中所有的值加载到环境变量中
    for (const key in env) {
        if (Object.hasOwnProperty.call(env, key)) {
            process.env[key] = (env[key]);
        }
    }
    // console.log(process.env);
}

module.exports = main